<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>个人博客</title>
	<link rel="stylesheet" href="/Blog/Public/Application/Css/common.css" />
	<link rel="stylesheet" href="/Blog/Public/Application/Css/index.css" />
	<script type="text/JavaScript" src='/Blog/Public/Application/Js/jquery-1.7.2.min.js'></script>
	<script type="text/JavaScript" src='/Blog/Public/Application/Js/common.js'></script>
</head>
<body>
<!--头部-->
	<div class='top-search-wrap'>
		<div class='top-search'>
				<img src="/Blog/Public/Application/Images/log.jpg"/>
			<div class='search-wrap'>
				<form action="<?php echo U('Home/Index/serach',array('name'=>name));?>" method='POST'>
					<input type="text" name='name' class='search-content'/>					
					<input type="submit" name='search' value='搜索'/>
				</form>
			</div>			
		</div>
	</div>
	<div class='top-nav-wrap'>
		<ul class='nav-lv1'>
			<li class='nav-lv1-li'>
				<a href="<?php echo U('Home/Index/index');?>" class='top-cate'>博客首页</a>
			</li>
			<?php if(is_array($step)): foreach($step as $key=>$v): ?><li class='nav-lv1-li'>
				<a href="<?php echo U('Home/List/index',array('btid'=>$v['id']));?>" class='top-cate'><?php echo ($v["name"]); ?></a>
					<ul>
						<?php if(is_array($v["child"])): foreach($v["child"] as $key=>$value): ?><li><a href="<?php echo U('Home/List/index',array('btid'=>$value['id']));?>"><?php echo ($value["name"]); ?></a></li><?php endforeach; endif; ?>
					</ul>
			</li><?php endforeach; endif; ?>
		</ul>
	</div>

<!--主体-->
	<div class='main'>
		<div class='main-left'>
			<p>博文</p>
			<?php if(is_array($step)): foreach($step as $key=>$v): ?><dl>
					<dt><?php echo ($v["name"]); ?><a href="<?php echo U('Home/List/jump',array('jumpid'=>$v['id']));?>">更多>></a></dt>	
						<?php if(is_array($boke)): foreach($boke as $key=>$value): if($value['cid'] == $v['id']): ?><dd>					
									<a href="<?php echo U('Home/Show/index',array('id'=>$value['id']));?>"><?php echo ($value["title"]); ?></a>
										<span><?php echo (date("m/d",$value["time"])); ?></span>					
								</dd><?php endif; ?>
						<?php if(is_array($small)): foreach($small as $key=>$val): if(($val['id'] == $value['cid']) AND ($val['pid'] == $v['id'])): ?><dd>					
									<a href="<?php echo U('Home/Show/index',array('id'=>$value['id']));?>"><?php echo ($value["title"]); ?></a>
									<span><?php echo (date("m/d",$value["time"])); ?></span>					
								</dd><?php endif; endforeach; endif; endforeach; endif; ?>
				</dl><?php endforeach; endif; ?>
		</div>
	<!--主体右侧-->
		<div class='main-right'>
			<dl>
				<dt>推荐博文</dt>
				<?php if(is_array($recommend)): foreach($recommend as $key=>$v): if(is_array($v["attr"])): foreach($v["attr"] as $key=>$value): if($value['id'] == 2): ?><dd>
								<a href="<?php echo U('Home/Show/index',array('id'=>$v['id']));?>"><?php echo ($v["title"]); ?></a> [<font color="<?php echo ($value["color"]); ?>"><?php echo ($value["name"]); ?></font>]
							</dd><?php endif; endforeach; endif; endforeach; endif; ?>
			</dl>

			<dl>
				<dt>最新发布</dt>
				<?php if(is_array($new)): foreach($new as $key=>$v): ?><dd>
						<a href="<?php echo U('Home/Show/index',array('id'=>$v['id']));?>"><?php echo ($v["title"]); ?></a>							
						<span style="float:right;"><?php echo (date("Y:m:d H:i",$v["time"])); ?></span>				
					</dd><?php endforeach; endif; ?>
			</dl>			
			
			<dl>
				<dt>友情链接</dt>				
					<dd>
						<a href="http://www.baidu.com/">百度一下</a>			
					</dd>
					<dd>
						<a href="http://www.sohu.com/">搜狐</a>			
					</dd>				
			</dl>			
		</div>
	</div>
</body>
</html>